package com.jdk.thread.action.test;

import com.jdk.thread.action.room.RoomMgr;

/**
 * @Description :
 * @FileName: CastleServer.java
 * @Author :WeiHui.Zhang
 * @Data : 2016年2月2日 下午6:06:37
 * @Version:V1.00
 */
public class CastleServer {

	private static CastleServer castleServer;

	public static void main(String[] args) {
		CastleServer castleServer = CastleServer.getInstance();
		
		castleServer.start();
	}

	private void start() {
		RoomMgr.init();		
	}

	private static CastleServer getInstance() {
		if (castleServer == null) {
			castleServer = new CastleServer();
		}
		return castleServer;
	}
}
